import VueRouter from 'vue-router'
import home from './components/tabbar/home.vue'
import member from './components/tabbar/member.vue'
import cart from './components/tabbar/cart.vue'
import search from './components/tabbar/search.vue'
import newslist from './components/newslist/newsList.vue'

// 安装路由模块

var router = new VueRouter({
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: home
        },
        {
            path:'/home/newslist',
            component: newslist
        },
        {
            path: '/member',
            component: member
        },
        {
            path: '/cart',
            component: cart
        },
        {
            path: '/search',
            component: search
        }
    ],
    linkActiveClass: 'mui-active'
})

export default router